<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.selectWidth2 {
	width: 211px;
}

.selectWidth1 {
	width: 298px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;参展基本信息</td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>展会名称：</td>
		<td nowrap colspan="5"><input id="zh_title"
			name="proposal/zh_title" label="展会名称" type="text" maxlength="100"
			class="input_css required" style="width: 80%" 
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>申报日期：</td>
		<td nowrap colspan="5">
		    <c:set var="submit_date">
			    <x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> 
			    <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}"  className="required date"
				label="申报日期"></cpt:date>
		&nbsp;</td>	
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>项目联系人：</td>
		<td nowrap colspan="1"><input id="contact_psn_cname"
			name="proposal/contact_psn_cname" label="项目联系人" type="text" required
			class="input_css required " 
			maxlength="50"
			value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />" />
		</td>
		<td nowrap align="right"><span class="color_red">*</span>联系电话：</td>
		<td nowrap colspan="1"><input id="contact_psn_tel"
			name="proposal/contact_psn_tel" label="联系人电话" type="text" required
			class="input_css required"  maxlength="30"
			value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />" />
		</td>
		<td nowrap align="right"><span class="color_red">*</span>手机：</td>
		<td nowrap colspan="1"><input id="contact_psn_mobile"
			name="proposal/contact_psn_mobile" label="联系人手机" type="text" required
			class="input_css required mobile"  maxlength=11
			value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />" />
		</td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>主办单位：</td>
		<td nowrap colspan="5"><input 
			name="proposal/org_name" label="主办单位" type="text" maxlength="100"
			class="input_css required" style="width: 80%" 
			value="<x:out select="$xmlData/data/proposal/org_name" />" /></td>
	</tr>
	<tr>
		<td nowrap  align="right"><span class="color_red">*</span>举办地点：</td>
		<td nowrap colspan="5"><input 
			name="proposal/address" label="举办地点" type="text" maxlength="100"
			class="input_css required" style="width: 80%;" 
			value="<x:out select="$xmlData/data/proposal/address" />" /></td>
		
	</tr>
	<tr>
		
		<td nowrap align="right"><span class="color_red">*</span>展会时间：</td>
		<td nowrap colspan="2">
		    <c:set var="settled_date"><x:out select="$xmlData/data/proposal/settled_date" /></c:set> 
			<cpt:date id="settled_date" name="proposal/settled_date" value="${settled_date}"  className="required date" label="展会时间"></cpt:date>
		</td>
		<td nowrap  align="right" ><span class="color_red">*</span>展览面积：</td>
		<td nowrap colspan="2"><input 
			name="proposal/area_total" label="展览面积" type="text" 
			class="input_css required"  style="text-align:right;width: 50%;" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/area_total" />" />平方米</td>	
	</tr>
	<tr>
	<td nowrap  align="right" ><span class="color_red">*</span>单位参展情况：</td>
	<td colspan="2">
	 <label><input type="radio" name="exhibition"  class="do" value="1" onclick="radioClean(this,'exhibition_sum')">首次</label>
	 <label><input type="radio" name="exhibition"  class="do" value="2" onclick="radioClean(this,'exhibition_sum')">第</label><input 
			name="proposal/exhibition_sum" label="单位参展情况次数" type="text"  id="exhibition_sum"
			class="input_css "  style="text-align:right;width: 50px;" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/exhibition_sum" />" />次
	<input type="hidden" id='exhibition_value' name="proposal/exhibition_value" class="required"  label="单位参展情况"  value="<x:out select="$xmlData/data/proposal/exhibition_value" />">	
	<input type="hidden" name="proposal/exhibition_name" value="<x:out select="$xmlData/data/proposal/exhibition_name" />">	
	</td>
	<td nowrap  align="right" ><span class="color_red">*</span>参展方式：</td>
	<td colspan="2">
	 <label><input type="radio" name="exhibition_type"  class="do" value="1" onclick="radioClean(this,'exhibition_type_sum')" >独立参展</label>
	 <label><input type="radio" name="exhibition_type"  class="do" value="2" onclick="radioClean(this,'exhibition_type_sum')" >参加</label><input 
			name="proposal/exhibition_type_sum" label="参展方式展团名称" type="text" 
			class="input_css "   maxlength="50" style="width: 50%;"  id="exhibition_type_sum"
			value="<x:out select="$xmlData/data/proposal/exhibition_type_sum" />" />展团
	<input type="hidden" id='exhibition_type_value' name="proposal/exhibition_type_value" class="required"  label="参展方式"  value="<x:out select="$xmlData/data/proposal/exhibition_type_value" />">	
	<input type="hidden" name="proposal/exhibition_type_name" value="<x:out select="$xmlData/data/proposal/exhibition_type_name" />">	
	</td>
	</tr>
	<tr>
		<td nowrap  align="right" ><span class="color_red">*</span>展位面积：</td>
		<td  colspan="2"><input 
			name="proposal/area_zw" label="展位面积" type="text" 
			class="input_css required"  style="text-align:right;width: 50%;" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/area_zw" />" />平方米</td>
		<td nowrap  align="right"><span class="color_red">*</span>租金：</td>
		<td colspan="2"><input 
			name="proposal/rent_budget" label="租金" type="text" id='rent_budget'
			class="input_css required" style="text-align:right;width: 50%;" onfocus="InitInput.setNumber(this,7,2,2)"
			value="<x:out select="$xmlData/data/proposal/rent_budget" />" />元</td>	
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>主要展示内容：<br/>（限200字）</td>
		<td nowrap colspan="5">
		<textarea rows="5" cols="120"  class="input_textarea required  maxlength:200"   name='proposal/main_content'  label="主要展示内容"><x:out select="$xmlData/data/proposal/main_content"/></textarea>
		<input name="proposal/main_content_hidden" type="hidden" value=""/>
		</td>
	</tr>
	<tr>
		<td nowrap  align="right" ><span class="color_red">*</span>展位参观人数：</td>
		<td  colspan="2"><input 
			name="proposal/visitors_number" label="展位参观人数" type="text"  
			class="input_css required"  style="text-align:right;width: 50% " onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/visitors_number" />" />人</td>
		<td nowrap  align="right"><span class="color_red">*</span>成交情况：</td>
		<td colspan="2"><input 
			name="proposal/deal" label="成交情况" type="text" 
			class="input_css required" style="width: 80%;" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/deal" />" /></td>	
	</tr>
	<tr>
		<td colspan="6" >&nbsp;<span class="color_red">*</span>参展情况说明（展会历史、规模、档次；本单位基本情况；本单位参加（组织）该展会历史、效果；参加本次展会的基本情况、效果）（限1000字）</td>
	</tr>
	<tr >
          <td colspan="6">
			<textarea rows="7" cols="150"  class="input_textarea required  maxlength:1000"   name='proposal/summary'  label="参展情况说明"><x:out select="$xmlData/data/proposal/summary"/></textarea>
		    <input name="proposal/summary_hidden" type="hidden" value=""/>
		  </td>
      </tr>
</table>
<script>
$(document).ready (function() {
	radioClean(document.getElementById("exhibition_value"),'exhibition_sum');
	radioClean(document.getElementById("exhibition_type_value"),'exhibition_type_sum');
});

function radioClean(obj,string){
	if(obj.value==2){
		$("#"+string).attr("disabled",false);
		$("#"+string).addClass("required");
	}
	
	else{
		$("#"+string).val("");
		$("#"+string).attr("disabled",true);
		$("#"+string).removeClass("required");
	}
	
}
</script>
